package com.dream.common;

import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.UUID;

public class Test {

	public static void main(String[] args) throws Exception {
		String id =UUID.randomUUID().toString();
		String url="C:/down/"+id+".mp3";
		Common.downLoadFromUrl("http://api.weixin.qq.com/cgi-bin/media/get?access_token=fq9TyirRg31iQaGaErEFBekqArsz_EbjJG5oEcJdo8yI2vIvVya8-dZN1TZPWBBdUa_csEy5X-O26G4qKjwKQ3ElMMRvBjP33CnAhWa1kx_0BdATt-X5Pcz2KSI26Jh2HMYcAEAOTF&media_id=ogswMf94XCqAEbqf-b1ljFBdmN7VqNBBTg4YorxXqczhyU-NAixv_2mPlL4NQaG3",id+".mp3","C:/down/");
		String str =QQImage.QQuploadVidoe("/zhuixun1/"+id+".mp3",url);
		System.out.println(str);
	}
	 
	
}
